//
// Created by dong on 2025/10/20.
//

#ifndef BASEC_SWINDOW_H
#define BASEC_SWINDOW_H
#include <SDL_pixels.h>
#include"demo101.h"
#include "Sobj.h"

class Swindow
{
public:
    Swindow();
    ~Swindow();
    void setBkColor(const SDL_Color& color);
    int exec();
    void setTitle(string name);


    //窗口属性类设置和获取
    //窗口和宽度设置和获取

public:
    static bool init();
    static void close();
    inline static SobjList& getSObjectList();


public:
    static  SDL_Window* window;
    static SDL_Renderer* render;
protected:
    string title;
    SDL_Color color;
    static  SobjList mObjList;
};

inline SobjList& Swindow::getSObjectList()
{
    return mObjList;
}


#endif //BASEC_SWINDOW_H
